﻿using System;
using System.Runtime.Serialization;

namespace Silent.MDB.Common.Data
{
    [KnownType(typeof(Student))]
    [KnownType(typeof(Teacher))]
    public class Person : RootObject
    {
        public Person()
        {
            DateOfBirth = DateTime.Now;
        }

        public int PersonId { get; set; }
        public string Address { get; set; }
        public string Nationality { get; set; }
        public DateTime DateOfBirth { get; set; }
    }
}